﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MSEAPPC
{
    public partial class Loading : Form
    {
        public Loading()
        {
            InitializeComponent();
        }

        private void Loading_Shown(object sender, EventArgs e)
        {
            Task.Run(() => {
                for (int i = 0; i <= 100; i++)
                {
                    this.Invoke(() => {
                        this.progressBar1.Value = i;
                    });
                    //Thread.Sleep(20);
                }
                this.Invoke(() => {
                    this.Dispose();
                });
            });
        }
    }
}
